import request from '@/utils/request'

// 查询体检记录表列表
export function listDocExamination(query) {
  return request({
    url: '/behindExamination/docExamination/list',
    method: 'get',
    params: query
  })
}

// 查询体检记录表详细
export function getDocExamination(examinationId) {
  return request({
    url: '/behindExamination/docExamination/' + examinationId,
    method: 'get'
  })
}

// 新增体检记录表
export function addDocExamination(data) {
  return request({
    url: '/behindExamination/docExamination',
    method: 'post',
    data: data
  })
}

// 修改体检记录表
export function updateDocExamination(data) {
  return request({
    url: '/behindExamination/docExamination',
    method: 'put',
    data: data
  })
}

// 删除体检记录表
export function delDocExamination(examinationId) {
  return request({
    url: '/behindExamination/docExamination/' + examinationId,
    method: 'delete'
  })
}
